/*
 * @Author: Oscar Pena
 * 
 * */
package FlowGram.Application.SimulatorWindow.Simulator;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;

import javax.swing.JPanel;
import javax.swing.JTextPane;
import java.awt.TextArea;

public class MessageBox extends JPanel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

		TextArea ta = new TextArea("",4,100,TextArea.SCROLLBARS_VERTICAL_ONLY);

	public MessageBox() {
		// TODO Auto-generated constructor stub
		ta.setSize(1200, 100);
		Dimension di = new Dimension(ta.getSize());
		ta.setPreferredSize(di);
		ta.setLocation(10, 0);

		super.add(ta);
		
	}
	public void settext(String message){
		Font font = new Font("Serif", Font.ITALIC, 20);
        ta.setFont(font);
        ta.setForeground(Color.blue);
		ta.append("\n" + message);
		
	}
}
